package com.duckygo.towerdefense.game.sprites;

import java.util.Hashtable;
import java.util.Vector;

import com.duckygo.towerdefense.game.astar.AStarNode;
import com.duckygo.towerdefense.game.scenes.TowerDefenseScene;
import com.duckygo.towerdefense.game.sprites.AnimatedSprite2D.AnimationTemplate;

public class Viking extends Unit {

	
	private static Hashtable<String, AnimationTemplate> animations = new Hashtable<String, AnimationTemplate>();

	static {
		Viking viking = new Viking();
		viking.registerAnimation("walk_e", 10, 8, 0, 0);
		viking.registerAnimation("walk_n", 10, 8, 0, 64);
		viking.registerAnimation("walk_ne", 10, 8, 0, 128);
		viking.registerAnimation("walk_nw", 10, 8, 0, 192);
		viking.registerAnimation("walk_s", 10, 8, 0, 256);
		viking.registerAnimation("walk_se", 10, 8, 0, 320);
		viking.registerAnimation("walk_sw", 10, 8, 0, 384);
		viking.registerAnimation("walk_w", 10, 8, 0, 448);
	}

	
	@Override
	protected Hashtable<String, AnimationTemplate> getAnimations() {
		return animations;
	}
	
	
	public Viking() {
		width = 64;
		height = 64;
		
		texture = TowerDefenseScene.VIKING_TEX;
	}
	
}
